<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>模板-表单</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="${basePath!}/genius/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="${basePath!}/genius/style/admin.css" media="all">
  <link rel="stylesheet" href="${basePath!}/genius/style/form.css" media="all">
</head>
<body style="overflow: hidden;">
  <div class="layui-fluid">
    <div class="layui-card">
    	<div class="layui-card-body" id="layui-card-body">
        <div class="layui-form layuiadmin-card-header-auto">
        <div class="layui-form-item">
          <button class="layui-btn layui-btn-danger "data-type="back"><i class="layui-icon layui-icon-return"></i>返回</button>
		  <button class="layui-btn layui-btn-warm " data-type="submit"><i class="layui-icon layui-icon-ok"></i>保存</button>
          </div>  
		</div> 
    	<div class="layui-own-border" id="layui-own-border">
    	<form class="layui-form" action="" lay-filter="form1">
		<!--mode1、mode2、mode3分别代表一列/二列/三列 -->
      	  <div class="mode1">
      	  <div class="layui-form-item">
			  <div class="layui-form_one">
			      <label class="layui-form-label">ID</label>
			      <div class="layui-input-block">
			        <input type="text" name="userId"  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" readonly>
			      </div>
			  </div>
			  <div class="layui-form_one">
			      <label class="layui-form-label">用户名</label>
			      <div class="layui-input-block">
			        <input type="text" name="username"  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" readonly>
			      </div>
			  </div>
	    	 <div class="layui-form_one">
		      <label class="layui-form-label">姓名</label>
		      <div class="layui-input-block">
		        <input type="text" name="name" lay-verify="name"  placeholder="请输入昵称" autocomplete="off" class="layui-input" readonly>
		      </div>
	    	 </div>
		    <div class="layui-form_one">
		    	<label class="layui-form-label">手机号</label>
			      <div class="layui-input-block">
			        <input type="text" name="phone"  placeholder="请输入手机号" autocomplete="off" class="layui-input" readonly><!-- lay-verify="phone"  -->
			      </div>
		    </div>
    </div>
    
    			<div class="layui-form-item"> 
				<div class="layui-form_one" style="margin-right:0;">
					<label class="layui-form-label">头像</label>
						<div class="layui-input-inline">
						<input type="hidden" name="photo" id="photo" autocomplete="off" placeholder="请输入" class="layui-input" style="width:100%;float:left;">
					</div>
						<button type="button" class="layui-btn layui-btn-sm layui-btn-warm" id="imgUploadBtn"
						 style="margin-top:5px; display:inline;"><i class="layui-icon layui-icon-upload"></i>上传</button>
					<div class="layui-upload-list" imgshow></div>
				</div>
				</div>
				
	<div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="save" value="确认">
    </div>
    	</div>
    	<div class="clearfix"></div>
		</form>
    	</div>
     	
      </div>
    </div>
  </div>

  <script src="${basePath!}/genius/layui/layui.js"></script>  
  <script>
	//Demo
	layui.config({
    base: '${basePath!}/genius/'
    ,host:'${basePath!}'//项目访问路径 
  }).extend({
	index:'lib/index'
    ,edit: 'adminmanager/user/photo_edit' 
  }).use(['index','edit'], function(){
	 var $ = layui.$
	 ,edit = layui.edit; 
	  var parentJson = {};
	  parentJson.userId = "${RequestParameters["userId"]}";
	  parentJson.username = "${RequestParameters["username"]}";
	  parentJson.name = "${RequestParameters["name"]}";
	  parentJson.phone = "${RequestParameters["phone"]}";
	//  parentJson.photo = "${RequestParameters["photo"]}";
	  parentJson.bakUrl = "${RequestParameters["bakUrl"]}";
	  edit.setParentJson(parentJson);
  });
	</script>
</body>
</html>